<script>
import { ref } from 'vue';
export default{
  setup() {
    const count = ref(0);
    const increment = () => {
      count.value++;
    };
    const decrement = () => {
      count.value--;
    };
    return { count, increment, decrement };
  }
}
</script>

<template>
    <button @click="increment">++++</button>
    <span v-text="count"></span>
    <button @click="decrement">----</button>
</template>

<style scoped>

</style>
